<aside id="advanced-search" class="group">
       <h2>Advanced Search:</h2>
       
       <div class="inset margin-bottom-less">
           <strong> User: </strong>
           <form class="group" method="get" action="<?php echo $Controller->page_url('subscriptions'); ?>">
    
            <label><span>Name Contains:</span>
                <input type="text" value="" name="displayname" />
            </label>
            
            <label><span>City Contains:</span>
                <input type="text" value="" name="city" />
            </label>
            
            
            <label><span>Province:</span>
                <select name="province">
                    <option default></option>
                    <?
                    foreach ( $provinces as $key => $value ) {
                        if ($user->province == $key) {
                            echo '<option value="'.$key.'" default selected >'.$value.'</option>';
                        } else {
                            echo '<option value="'.$key.'">'.$value.'</option>';
                        }
                    } ?>
                </select>
            </label>
        </div>
        
        <div class="inset margin-bottom-less">
            <select name="search_date_type">
                    <option default value="starts_between">Starts Between</option>
                    <option value="ends_between">Ends Between</option>
                    
            </select>
    
            <label><span>From:</span>
                <input class="full-datepicker" readonly type="text" value="" name="search_from" />
            </label>
            
            <label><span>To:</span>
                <input class="full-datepicker" readonly type="text" value="" name="search_to" />
            </label>
            
        </div>
        
        <div class="inset margin-bottom-less">
                <strong> Subscription: </strong> <br>
                
                <span>Subscription status: </span>
                
                <span class="padding-less">
                <input type="radio" value="all" name="status" checked="true"/>
                All Active</span>

                <span class="padding-less">
                <input type="radio" value="active" name="status" />
                Just Active</span>

                <span class="padding-less">
                <input type="radio" value="paused" name="status" />
                Paused</span>
                
                <span class="padding-less">
                <input type="radio" value="expiring" name="status" />
                Expiring</span>
                
                <span class="padding-less">
                <input type="radio" value="everything" name="status" />
                Everything</span>
        </div>
        <div class="right group">
            <input type="hidden" name="page" value="subscriptions">
            <button class="right primary-button skin-gradient" type="submit" name="action" value="search">Search</button>
            <a class="right toggle-advanced-search text-button" href="#" >Cancel</a>
            <a class="show-tool-tip right text-button" href="#" title="If you're looking for someone you're in the right spot. Fill in only the search parameters you need, and hit Search. <br> <em>Please note: Searches can take some time, especially for vague requests.</em>">Help</a>

        </div>
        </form>
</aside>